package com.example.demo.entity;

import lombok.Data;

import java.util.Date;

@Data // Lombok 注解，自动生成 Getter/Setter 等方法
public class User {
    private Long id;
    private String username;
    private String email;
    private String password;
    private Date createdAt;  // 对应数据库 created_at 字段
    private Date updatedAt;  // 对应数据库 updated_at 字段
    private Integer status;


    public User(String username, String email, String password) {
        this.username = username;
        this.email = email;
        this.password = password;
    }
}